package job_center

import (
	"database/sql"
	"time"
)

type GfyxJobPo struct {
	Id           int64
	OrderId      int64
	JobType      int32
	Method       int32
	Params       string
	Number       int32
	Status       int32
	FinishTime   sql.NullTime
	FinishStatus int32
	Result       string
	CreatedBy    int64
	CreatedOn    time.Time
	ModifiedBy   int64
	ModifiedOn   time.Time
	IsDeleted    int32
}

func (p GfyxJobPo) TableName() string {
	return "gfyx_job"
}

type GfyxJobBatchRuntimePo struct {
	Id         int64
	JobId      int64
	BatchNum   int32
	BatchSize  int32
	FileId     int64
	CreatedBy  int64
	CreatedOn  time.Time
	ModifiedBy int64
	ModifiedOn time.Time
	IsDeleted  int32
}

func (p GfyxJobBatchRuntimePo) TableName() string {
	return "gfyx_job_batch_runtime"
}

type GfyxJobFilePo struct {
	Id         int64
	JobId      int64
	FileId     int64
	FileType   int32
	CreatedBy  int64
	CreatedOn  time.Time
	ModifiedBy int64
	ModifiedOn time.Time
	IsDeleted  int32
}

func (p GfyxJobFilePo) TableName() string {
	return "gfyx_job_file"
}
